﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {   
            try{

                OleDbConnection connection = new OleDbConnection();
            connection.ConnectionString =@"Microsoft.ACE.OLEDB.12.0;Data Source=C:\est\est.accdb;
Persist Security Info=False;";
            connection.Open();
            checkConnection.Text = "successfull" ;
            connection.Close();

            }catch(Exception ex)
            {
                    MessageBox.Show("error" + ex);
            }


            
         
        }

        private void checkConnection_Click(object sender, EventArgs e)
        {

        }
    }
}
